<%include file="include/head.html"%>
<link rel="stylesheet" type="text/css" href="<%$CSS_DIR%>/jquery.ad-gallery.css">
<link rel="stylesheet" type="text/css" href="<%$CSS_DIR%>/album.css">
<div class="wrapper">
  <div id="div-home" class="main-info-box">
    <%include file="include/crumbs.html"%>
    <%include file="include/edit_nav.html"%>   
    <div class="div-info-body">

      <!-- <div class="figure"> -->
      <!-- 	<img class="figure-img" src="<%$user.figureurl%>"/> -->
      <!-- </div> -->
      <div class="person_info">
	<form id="register" action="/relation/submit" method='post' class="app-people">
	  <input type="hidden" name="creator" value="<%$creator%>"/>
	  <input type="hidden" name="roleid" value="<%$user.id%>"/>
	  <input type="hidden" name="rolegender" value="<%$user.gender%>"/>
          <section id="address">
            <dt>
	      省：
	    </dt>
            <dd>
	      <select required class="required" id="province_id">
		<%$provinces%>
	      </select>
	    </dd>
            <dt>
	      市：
	    </dt>
            <dd>
	      <select required1 class="required1" id="city_id">
		<%$cities%>
	      </select>
	    </dd>
            <dt>
	      县：
	    </dt>
            <dd>
	      <select required1 class="1required" id="town_id">
		<%$towns%>
	      </select>
              <input name="region_code" type="hidden" id="city_code" value="<%$user.region_code%>"/>
	    </dd>
	  </section>
          <section id="name">
            <dt>
	      性别：
	    </dt>
            <dd>	
	      <label><input type="radio" required class="required" name="gender" id="male" value="<%$MALE%>"/>男</label>
	      <label><input type="radio" name="gender" id="female" value="<%$FEMALE%>"/>女</label>            
	    </dd>
	    
            <dt>
	      姓：
	    </dt>
	    <dd>
	      <input required class="required" maxlength="8" type="text" name="first_name"/>
	    </dd>
	    <dt>名：</dt>
	    <dd><input required class="required" maxlength="8" type="text" name="name"/></dd>
	    <dt>字：</dt>
	    <dd><input class="required" maxlength="16" type="text" name="symbol"/></dd>
	    <dt>号/称谓：</dt>
	    <dd><input class="required" maxlength="16" type="text" name="title"/></dd>
            <dt>
	      出生日期：
	    </dt>
	    <dd>
	      <input required1 1pattern="-?\d{1,4}(-(0[1-9]|1[0-2]))?(-(0[1-9]|1[0-9]|2[0-9]|3[0-1]))?" 
		     class="required1" maxlength="11" type="text" name='day_of_birth'/>
	    </dd>
          </section>
          <section id="relation">
	  <dt>
	    开放：
	  </dt>
	  <dd>
	    <%if $open|@count gt 0%>
	    <%foreach from=$open key=k item=v%>		
	    <label><input type="radio" required class="required" name="open" id="<%$k%>" value="<%$k%>" 
			  <% if $k eq "public"%>checked<%/if%> /><%$v%></label>
	    <%/foreach%>
	    <%/if%>
	  </dd>
	  <dt>
	    他/她是
	    <%$user.realname%>的：
	  </dt>
	  <dd>
	    <select name="rel_type">
	      <%$rel_type%>
	    </select>
	  </dd>
          </section>
	  <dt>&nbsp;
	  </dt>
	  <dd>
	    <input type='submit' class="ym-button" name='' value='继 续'/>
	  </dd>
	</form>
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>

<%include file="include/bottom.html"%>  
